<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: SDK/all/include/JCMessageChannel.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ca6309d378ceffb9970caf11a0592736.html">SDK</a></li><li class="navelem"><a class="el" href="dir_df301a42bdb8674e37034074c8aa490e.html">all</a></li><li class="navelem"><a class="el" href="dir_2a90b483303ce0af7319f0f0fd0c54ed.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JCMessageChannel.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma onceconst char* </span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;JCMessageChannelCallback.h&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;JCClient.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html">   14</a></span>&#160;<span class="keyword">class </span>JCSDK_API <a class="code" href="class_j_c_message_channel.html">JCMessageChannel</a> {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a7c46e2cdda1265a58c980fc019529031">   39</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a>* <a class="code" href="class_j_c_message_channel.html#a7c46e2cdda1265a58c980fc019529031">sendMessage</a>(<a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a> type, <span class="keyword">const</span> <span class="keywordtype">char</span>* keyId, <span class="keyword">const</span> <span class="keywordtype">char</span>* messageType, <span class="keyword">const</span> <span class="keywordtype">char</span>* text,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>*  extraParams, <span class="keywordtype">int</span> cookie, <span class="keywordtype">bool</span> atAll, <span class="keyword">const</span> <span class="keywordtype">char</span>* atUidList) = 0;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a2de75f8da09b6dc92ef404aa236b0394">   65</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a>* <a class="code" href="class_j_c_message_channel.html#a2de75f8da09b6dc92ef404aa236b0394">sendFile</a>(<a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a> type, <span class="keyword">const</span> <span class="keywordtype">char</span>*  keyId, <span class="keyword">const</span> <span class="keywordtype">char</span>*  messageType, <span class="keyword">const</span> <span class="keywordtype">char</span>* fileUri, <span class="keyword">const</span> <span class="keywordtype">char</span>* thumbUri,</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> duration, <span class="keyword">const</span> <span class="keywordtype">char</span>* extraParams, <span class="keywordtype">int</span> cookie, <span class="keywordtype">bool</span> atAll, <span class="keyword">const</span> <span class="keywordtype">char</span>* atUidList) = 0;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a7933c5ac3e0eeb522a483344b2914e7b">   78</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_message_channel.html#a7933c5ac3e0eeb522a483344b2914e7b">refreshConversation</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* serverUid, UINT64 lastQueryTime) = 0;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a8d527be713c435b241185622284f8884">   92</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_message_channel.html#a8d527be713c435b241185622284f8884">fetchMessages</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* serverUid, INT64 startMessageId, <span class="keywordtype">int</span> count, <span class="keywordtype">bool</span> pack) = 0;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a44ade6ca23ef97377d90715d14707295">  104</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_message_channel.html#a44ade6ca23ef97377d90715d14707295">markReadMessage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* serverUid, UINT64 messageId) = 0;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a08c3c116415475b4de7016c1d44b589f">  116</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_message_channel.html#a08c3c116415475b4de7016c1d44b589f">markRecvMessage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* serverUid, UINT64 messageId) = 0;</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a654094a19e3b322402a5d69a67eec691">  129</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_j_c_message_channel.html#a654094a19e3b322402a5d69a67eec691">drawBackMessage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* serverUid, UINT64 messageId, <span class="keyword">const</span> <span class="keywordtype">char</span>* text) = 0;</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_j_c_message_channel.html#a41085ab825d167479620369865c69c89">  136</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_j_c_message_channel.html#a41085ab825d167479620369865c69c89">setThumbDir</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* thumbDir) = 0;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;};</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga3038bf89c68fa7a73a682d37fcb71931">  152</a></span>&#160;<span class="keyword">extern</span> JCSDK_API <a class="code" href="class_j_c_message_channel.html">JCMessageChannel</a>* <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga3038bf89c68fa7a73a682d37fcb71931">createJCMessageChannel</a>(<a class="code" href="class_j_c_client.html">JCClient</a>* client, <a class="code" href="class_j_c_message_channel_callback.html">JCMessageChannelCallback</a>* callback);</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga2e53ca4551a00ac7bff9e53bb70a2193">  156</a></span>&#160;<span class="keyword">extern</span> JCSDK_API <span class="keywordtype">void</span> <a class="code" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga2e53ca4551a00ac7bff9e53bb70a2193">destroyJCMessageChannel</a>();</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_j_c_message_channel_html_a8d527be713c435b241185622284f8884"><div class="ttname"><a href="class_j_c_message_channel.html#a8d527be713c435b241185622284f8884">JCMessageChannel::fetchMessages</a></div><div class="ttdeci">virtual int fetchMessages(const char *serverUid, INT64 startMessageId, int count, bool pack)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_item_html"><div class="ttname"><a href="class_j_c_message_channel_item.html">JCMessageChannelItem</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannelItem.h:12</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a2de75f8da09b6dc92ef404aa236b0394"><div class="ttname"><a href="class_j_c_message_channel.html#a2de75f8da09b6dc92ef404aa236b0394">JCMessageChannel::sendFile</a></div><div class="ttdeci">virtual JCMessageChannelItem * sendFile(JCMessageChannelType type, const char *keyId, const char *messageType, const char *fileUri, const char *thumbUri, int size, int duration, const char *extraParams, int cookie, bool atAll, const char *atUidList)=0</div></div>
<div class="ttc" id="aclass_j_c_client_html"><div class="ttname"><a href="class_j_c_client.html">JCClient</a></div><div class="ttdef"><b>Definition:</b> JCClient.h:90</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a08c3c116415475b4de7016c1d44b589f"><div class="ttname"><a href="class_j_c_message_channel.html#a08c3c116415475b4de7016c1d44b589f">JCMessageChannel::markRecvMessage</a></div><div class="ttdeci">virtual int markRecvMessage(const char *serverUid, UINT64 messageId)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html"><div class="ttname"><a href="class_j_c_message_channel.html">JCMessageChannel</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannel.h:14</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a7c46e2cdda1265a58c980fc019529031"><div class="ttname"><a href="class_j_c_message_channel.html#a7c46e2cdda1265a58c980fc019529031">JCMessageChannel::sendMessage</a></div><div class="ttdeci">virtual JCMessageChannelItem * sendMessage(JCMessageChannelType type, const char *keyId, const char *messageType, const char *text, const char *extraParams, int cookie, bool atAll, const char *atUidList)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a654094a19e3b322402a5d69a67eec691"><div class="ttname"><a href="class_j_c_message_channel.html#a654094a19e3b322402a5d69a67eec691">JCMessageChannel::drawBackMessage</a></div><div class="ttdeci">virtual int drawBackMessage(const char *serverUid, UINT64 messageId, const char *text)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a7933c5ac3e0eeb522a483344b2914e7b"><div class="ttname"><a href="class_j_c_message_channel.html#a7933c5ac3e0eeb522a483344b2914e7b">JCMessageChannel::refreshConversation</a></div><div class="ttdeci">virtual int refreshConversation(const char *serverUid, UINT64 lastQueryTime)=0</div></div>
<div class="ttc" id="agroup___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_ga3038bf89c68fa7a73a682d37fcb71931"><div class="ttname"><a href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga3038bf89c68fa7a73a682d37fcb71931">createJCMessageChannel</a></div><div class="ttdeci">JCSDK_API JCMessageChannel * createJCMessageChannel(JCClient *client, JCMessageChannelCallback *callback)</div></div>
<div class="ttc" id="agroup___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_ga2e53ca4551a00ac7bff9e53bb70a2193"><div class="ttname"><a href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga2e53ca4551a00ac7bff9e53bb70a2193">destroyJCMessageChannel</a></div><div class="ttdeci">JCSDK_API void destroyJCMessageChannel()</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a44ade6ca23ef97377d90715d14707295"><div class="ttname"><a href="class_j_c_message_channel.html#a44ade6ca23ef97377d90715d14707295">JCMessageChannel::markReadMessage</a></div><div class="ttdeci">virtual int markReadMessage(const char *serverUid, UINT64 messageId)=0</div></div>
<div class="ttc" id="aclass_j_c_message_channel_callback_html"><div class="ttname"><a href="class_j_c_message_channel_callback.html">JCMessageChannelCallback</a></div><div class="ttdef"><b>Definition:</b> JCMessageChannelCallback.h:14</div></div>
<div class="ttc" id="agroup___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97_html_ga0c8b56b8dbe68151f164ba4680f1022b"><div class="ttname"><a href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a></div><div class="ttdeci">JCMessageChannelType</div><div class="ttdef"><b>Definition:</b> JCMessageChannelConstants.h:12</div></div>
<div class="ttc" id="aclass_j_c_message_channel_html_a41085ab825d167479620369865c69c89"><div class="ttname"><a href="class_j_c_message_channel.html#a41085ab825d167479620369865c69c89">JCMessageChannel::setThumbDir</a></div><div class="ttdeci">virtual void setThumbDir(const char *thumbDir)=0</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
